import request from 'src/utils/request'

const base_2 = import.meta.env.DEV ? 'http://localhost:3019/shenwenyi' : ''
const base_1 = import.meta.env.DEV ? 'http://localhost:3019/zhoupan' : ''
const base = import.meta.env.DEV ? 'http://localhost:3019/chenjialin' : ''

// 商城管理 店铺管理详情接口
export function merchantSelf(data) {
    return request({
        // url: base_2+'/mall/merchant/self',
        url: '/mall/merchant/self',
        method: 'post',
        data
    })
    // return Promise.resolve({ 
    //     data: {
    //         records: [
    //             {merchantName:'项目名称', clerkMobile:'2022.6.1'},
    //             {merchantName:'项目名称',clerkMobile:'2022.7.1'}
    //         ],
    //         total: 10
    //     }
    // })
}

// 店铺编辑保存的接口
export function updatekmerchantList(data) {
    return request({
        // url: base_2+'/mall/merchant/updateSelf',
        url: '/mall/merchant/updateSelf',
        method: 'post',
        data
    })
}

// 店铺管理店员table列表接口
export function checkClerkList(data) {
    return request({
        // url: base_2+'/mall/clerk/list',
        url: '/mall/clerk/list',
        method: 'post',
        data
    })
}


// 店铺管理店员table删除接口
export function deleteClerk(data) {
    return request({
        // url: base_2+'/mall/clerk/del',
        url: '/mall/clerk/del',
        method: 'post',
        data
    })
}
// 店铺管理店员table添加接口
export function addClerkList(data) {
    return request({
        // url: base_2+'/mall/clerk/add',
        url: '/mall/clerk/add',
        method: 'post',
        data
    })
}

// 店铺管理店员table编辑修改的接口
export function editClerkList(data) {
    return request({
        // url: base_2+'/mall/clerk/update',
        url: '/mall/clerk/update',
        method: 'post',
        data
    })
}

// 店铺管理店员table编辑回显接口
export function ClerkShow(data) {
    return request({
        // url: base_2+'/mall/clerk/details',
        url: '/mall/clerk/details',
        method: 'post',
        data
    })
}